package com.banmao.dynamicDS.aop;

import java.util.Arrays;
import java.util.Optional;

public enum DS {

    DS1("ds1"),
    DS2("ds2");

    private String name;

    DS(String name) {
        this.name = name;
    }

    public static String getName(DS ds) {
        if (ds == null) {
            return DS1.name;
        }
        return ds.name;
    }
}
